package com.spark.lola.mapper.sup;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.spark.lola.entity.sup.BankInfo;
import com.spark.lola.support.mybatis.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.web.bind.annotation.PathVariable;

import java.io.Serializable;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author dengyejun
 * @since 2020-04-24
 */
@Mapper
public interface BankInfoMapper extends BaseMapper<BankInfo> {

    @Override
    BankInfo selectById(Serializable id);
    IPage<BankInfo> page(Page page, @Param(Constants.WRAPPER) Wrapper wrapper);

    int resetAuto(@Param("supplierId")Long supplierId);

    int setAuto(@Param("id")Long id);
}
